//
//  RoundedImage.swift
//  CustomView
//
//  Created by hoho on 14-11-14.
//  Copyright (c) 2014年 thinkcart.net. All rights reserved.
//

//
//  RoundedImage.swift
//  CustomView
//
//  Created by hoho on 14-11-14.
//  Copyright (c) 2014年 thinkcart.net. All rights reserved.
//

import UIKit

@IBDesignable class RoundedImage : UIImageView {
    
    @IBInspectable var borderColor : UIColor = UIColor.clearColor() {
        didSet {
            layer.borderColor = borderColor.CGColor
            layer.masksToBounds = true
        }
    }
    
    @IBInspectable var borderWidth: CGFloat = 0 {
        didSet {
            layer.borderWidth = borderWidth
            layer.masksToBounds = true
        }
    }
    
    @IBInspectable var cornerRadius: CGFloat = 0 {
        didSet {
            layer.cornerRadius = cornerRadius
            layer.masksToBounds = true
        }
    }

}
